﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace EFong.Contract
{
    [DataContract]
    public class CustomerHotelIntergralRate
    {
        private Guid _id = Guid.NewGuid();
        [DataMember]
        public Guid ID
        {
            get { return _id; }
            set { _id = value; }
        }

        private HotelLevel _hotelLevel;
        [DataMember]
        public HotelLevel HotelLevel
        {
            get { return _hotelLevel; }
            set { _hotelLevel = value; }
        }

        private decimal _intergral;
        [DataMember]
        public decimal Intergral
        {
            get { return _intergral; }
            set { _intergral = value; }
        }

        public override bool Equals(object obj)
        {
            CustomerHotelIntergralRate temp = obj as CustomerHotelIntergralRate;
            if (temp == null)
                return false;
            return (this.ID.Equals(temp.ID));
        }

    }
}
